package com.zkingsoft.wechat;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.matrix.core.pojo.AjaxResult;
import com.matrix.core.web.BaseAction;
import com.zkingsoft.bean.WebArticle;
import com.zkingsoft.service.WebArticleService;

/**
 * @description 会员相关接口
 * @author 姜友瑶
 * @date 2018-05-23 00:08
 */
@Controller
@RequestMapping(value = "wxapi/article")
public class ArticleAction extends BaseAction {

	@Autowired
	WebArticleService articleService;

	/**
	 * 更新认证信息
	 * 
	 * @author JIANGYOUYAO
	 * @email 935090232@qq.com
	 * @date 2018年9月6日
	 * @param BizAuth
	 * @return
	 */
	@RequestMapping(value = "/findArticleByType")
	public @ResponseBody AjaxResult findArticleByType(@RequestBody String typeName) {
		List<WebArticle> list = articleService.findByTypeName(typeName);
		return new AjaxResult(AjaxResult.STATUS_SUCCESS, list);
	}
	
	
	
	
	
	
	
	
	

}